<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<title>Attention (!) - Close Window automatically</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../design.css" rel="stylesheet" type="text/css" />
<LINK REL="stylesheet" TYPE="text/css" HREF="ms-help://Hx/HxRuntime/HxLink.css"><LINK REL="stylesheet" TYPE="text/css" HREF="ms-help://Hx/HxRuntime/HxLinkDefault.css"><xml>
<MSHelp:Keyword Index="K" Term="Link PDF from CHM"/>
</xml>
<OBJECT id=hhctrl type="application/x-oleobject"
 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="Close">
</OBJECT>
<script type="text/javascript" language="JavaScript">
<!--
window.setTimeout('hhctrl.Click();',1000);
// -->
</script>
</head>

<body>
<a name="top" id="top"></a>
<table width="100%" border="0"cellpadding="0" cellspacing="0">
  <tr>
    <td background="../images/site/riffel_40px.jpg"><a href="../index.htm"><img src="../images/riffel_home.jpg" alt="go to home ..." width="40" height="40" border="0" /></a><img src="../images/riffel_helpinformation.jpg" width="209" height="40" /></td>
  </tr>
</table>

<h1>Close Window automatically</h1>
<p>One can close HTML Help window without getting a click from user by the following 
  code. Use &quot;Close&quot; ActiveX Control and Javascript as shown below.</p>
<h2>Code</h2>
<p>&nbsp;</p>
<p>&lt;OBJECT id=hhctrl type=&quot;application/x-oleobject&quot;<br />
  classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;<br />
  codebase=&quot;hhctrl.ocx#Version=5,2,3790,233&quot;&gt;<br />
  &lt;PARAM name=&quot;Command&quot; value=&quot;Close&quot;&gt;<br />
  &lt;/OBJECT&gt;<br />
  &lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;<br />
  &lt;!--<br />
  window.setTimeout('hhctrl.Click();',1000);<br />
  // --&gt;<br />
  &lt;/script&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>

<table width="100%" border="0"cellpadding="0" cellspacing="0">
  <tr>
    <td background="../images/riffel_40px.jpg"><a href="#top"><img src="../images/up_rectangle.png" alt="back to top ..." width="32" height="32" border="0" /></a></td>
  </tr>
</table>
<hr size="1" />
<p>&nbsp;</p>
</body>
</html>
